package com.example.filesystem.repository;

import com.example.filesystem.model.UploadInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface UploadInfoRepository extends JpaRepository<UploadInfo, String> {
    @Modifying(clearAutomatically = true)
    @Query("delete   from UploadInfo   WHERE uploadId = :uploadId")
    void deleteInfo(String uploadId);
}